package dto;

public class MemberInfo {
	private int mem_num;
	public String mem_id;
	public String mem_pw;
	
	public String mem_email;
	public String mem_email1;
	public String mem_email2;
	
	public int mem_level;
	public int mem_recep;
	public int pen_corregnum;
	public int mem_mileage;
	

	public int getMem_num() {
		return mem_num;
	}
	public void setMem_num(int mem_num) {
		this.mem_num = mem_num;
	}
	public int getPen_corregnum() {
		return pen_corregnum;
	}
	public void setPen_corregnum(int pen_corregnum) {
		this.pen_corregnum = pen_corregnum;
	}
	public String getMem_id() {
		return mem_id;
	}
	public void setMem_id(String mem_id) {
		this.mem_id = mem_id;
	}
	public String getMem_pw() {
		return mem_pw;
	}
	public void setMem_pw(String mem_pw) {
		this.mem_pw = mem_pw;
	}
	public void setMem_email(String mem_email) {
		this.mem_email = mem_email;
	}
	public String getMem_email(){
		if(mem_email == null){
			if(mem_email1 != null){
				if(mem_email2 != null){
					if(!mem_email2.equals("manual")){
						mem_email = mem_email1+mem_email2;
					}else{
						mem_email= mem_email1;
					}
				}
			}
		}
		return mem_email;
	}
	
	public String getMem_email1() {
		return mem_email1;
	}
	public void setMem_email1(String mem_email1) {
		this.mem_email1 = mem_email1;
	}
	public String getMem_email2() {
		return mem_email2;
	}
	public void setMem_email2(String mem_email2) {
		this.mem_email2 = mem_email2;
	}
	
	public int getMem_level() {
		return mem_level;
	}
	public void setMem_level(int mem_level) {
		this.mem_level = mem_level;
	}
	public int getMem_recep() {
		return mem_recep;
	}
	public void setMem_recep(int mem_recep) {
		this.mem_recep = mem_recep;
	}
	public int getMem_corregnum() {
		return pen_corregnum;
	}
	public void setMem_corregnum(int mem_corregnum) {
		this.pen_corregnum = mem_corregnum;
	}
	public int getMem_mileage() {
		return mem_mileage;
	}
	public void setMem_mileage(int mem_mileage) {
		this.mem_mileage = mem_mileage;
	}
}
